package com.cgsrp.cgsrp_shopping.dao;

import com.cgsrp.cgsrp_shopping.domain.Order;

import java.util.List;

public interface OrderMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKey(Order record);

    List<Order> findByUserId(int userId);

    int update(Order order);

    int cancel(Long id);

    int updateState(Long id);

    List<Order> findAll();

    int deliverByOrderId(Long orderId);

}
